﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using myUserManagement;

namespace POS
{
    public partial class frmViewManager : Form
    {
        frmMain parent;
        ghieUserManagement ghieuser = new ghieUserManagement();

        public frmViewManager(frmMain p)
        {
            parent = p;
            InitializeComponent();
            this.Load += new EventHandler(frmViewManager_Load);

        }

        void frmViewManager_Load(object sender, EventArgs e)
        {
            ghieuser.connection();
            ghieuser.loadData("Select  distinct fUID as 'ID' , fName as 'Name' , flevel as 'Level' from tbluser");
            dataGridView1.DataSource = ghieuser.tbl;
            ghieuser.DBClose();
        }
    }
}
